import request from '@/utils/request'

// 查询咨询详情列表
export function listDetails(query) {
  return request({
    url: '/order/consultdetails/list',
    method: 'get',
    params: query
  })
}

// 新增咨询详情
export function addDetails(data) {
  return request({
    url: '/order/consultdetails',
    method: 'post',
    data: data
  })
}

// 修改咨询详情
export function updateDetails(data) {
  return request({
    url: '/order/consultdetails',
    method: 'put',
    data: data
  })
}

// 删除咨询详情
export function delDetails(id) {
  return request({
    url: '/order/consultdetails/' + id,
    method: 'delete'
  })
}


// 查询咨询详情详细
export function getDetails(id) {
  return request({
    url: '/order/order/consult/record/' + id,
    method: 'get'
  })
}

// 查询结算详情详细
export function getResultDetails(id) {
  return request({
    url: '/order/order/detail/' + id,
    method: 'get'
  })
}
